package com.cloud.pole.recharge.model;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.TypeReference;
import com.cloud.pole.recharge.model.recomm.discnt.DiscntMsg;
import lombok.Data;

@Data
public class QueryDiscntOutResp extends RespResultMsg{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4673357218927106275L;
	
	//优惠列表
	private List<DiscntMsg> DISCNT_INFOS;
	
	public QueryDiscntOutResp() {
		// TODO Auto-generated constructor stub
	}
	
	
	public static void main(String[] args) {
		String strJosn = "{\"result\":[{\"RESULT_CODE\":\"0\",\"DISCNT_INFOS\":[{\"DISCNT_TYPE\":\"1\",\"DISCNT_CODE\":\"99664879\",\"PRODUCT_ID\":\"\",\"DISNCT_NAME\":\"5G特惠流量30元5GB\"},{\"DISCNT_TYPE\":\"1\",\"DISCNT_CODE\":\"99664881\",\"PRODUCT_ID\":\"\",\"DISNCT_NAME\":\"5G特惠流量20元10GB\"},{\"DISCNT_TYPE\":\"1\",\"DISCNT_CODE\":\"99664880\",\"PRODUCT_ID\":\"\",\"DISNCT_NAME\":\"5G特惠流量30元10GB\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662422\",\"PRODUCT_ID\":\"99914833\",\"DISNCT_NAME\":\"5G智享套餐（个人版）128元档\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662424\",\"PRODUCT_ID\":\"99914833\",\"DISNCT_NAME\":\"5G智享套餐（个人版）298元档\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662425\",\"PRODUCT_ID\":\"99914833\",\"DISNCT_NAME\":\"5G智享套餐（个人版）398元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662426\",\"PRODUCT_ID\":\"99914833\",\"DISNCT_NAME\":\"5G智享套餐（个人版）598元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662446\",\"PRODUCT_ID\":\"99916033\",\"DISNCT_NAME\":\"5G智享套餐（家庭版）169元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662447\",\"PRODUCT_ID\":\"99916033\",\"DISNCT_NAME\":\"5G智享套餐（家庭版）269元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662448\",\"PRODUCT_ID\":\"99916033\",\"DISNCT_NAME\":\"5G智享套餐（家庭版）369元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662449\",\"PRODUCT_ID\":\"99916033\",\"DISNCT_NAME\":\"5G智享套餐（家庭版）569元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662450\",\"PRODUCT_ID\":\"99916033\",\"DISNCT_NAME\":\"5G智享套餐（家庭版）869元档 \"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664885\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通119（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664886\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通139元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664887\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通169元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664888\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通199元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664889\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通239元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664890\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通299元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664891\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通399元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99664892\",\"PRODUCT_ID\":\"99916037\",\"DISNCT_NAME\":\"全球通599元档（5G）\"},{\"DISCNT_TYPE\":\"2\",\"DISCNT_CODE\":\"99662423\",\"PRODUCT_ID\":\"99914833\",\"DISNCT_NAME\":\"5G智享套餐（个人版）198元档 \"}],\"RESULT_INFO\":\"获取推荐信息成功\"}],\"respDesc\":\"ok\",\"respCode\":\"0\"}";
		RespMsg<QueryDiscntOutResp> resp = JSONObject.parseObject(strJosn, new TypeReference<RespMsg<QueryDiscntOutResp>>(){});
		System.out.println(resp);
	}

}
